com.sponsorpay.sdk.android
Class HttpResponseParser

java.lang.Object
  extended by com.sponsorpay.sdk.android.HttpResponseParser

public class HttpResponseParser
extends java.lang.Object

Contains an utility method to extract the body of an HTTP response.


Constructor Summary
HttpResponseParser()
           
 
Method Summary
static java.lang.String extractResponseString(HttpResponse httpResponse)
          Extracts the body as a string from an HTTP response entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseParser

public HttpResponseParser()
Method Detail

extractResponseString

public static java.lang.String extractResponseString(HttpResponse httpResponse)
Extracts the body as a string from an HTTP response entity. Returns null on failure.

Parameters:
httpResponse - The response whose body will be extracted as string.
Returns:
The body as string or null on failure.